<template>
  <div class="content">
    <!-- <video class="video" poster controls src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"></video>
    <div class="cont">
      <div>视频介绍：</div>
      啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记
      啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记
      护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记啊hi无敌爱无悔的啊防护色和阿达打我的安王佛i阿瓦达i哦啊我到家啊忘记
    </div> -->

    <ul class="hahaha">
      <li
        :class="index == actve ? 'li li2' : 'li'"
        v-for="(item, index) in list"
        :key="index"
        @click="change(index)"
      >
        <span v-show="index == actve" class="borders2"></span>
        <div :class="index == actve ? 'lis' : 'noneborder'">awd</div>
        <span v-show="index == actve" class="borders"></span>
      </li>
    </ul>
  </div>
</template>
<script>
export default {
  name: "details",
  data() {
    return {
      list: [{}, {}, {}, {}],
      actve: 0
    };
  },
  methods: {
    change(index) {
      this.actve = index;
    }
  }
};
</script>
<style scoped>
.hahaha {
  display: block;
  width: 100%;
  padding: 0 20px 0 50px;
  height: 50px;
  /* border-bottom: 1px solid red; */
}
.noneborder {
  border: 1px solid #999;
  height: 40px;
  text-align: center;
  width: 99%;
}
.li {
  display: block;
  width: 20%;
  float: left;
  height: 50px;
  box-sizing: border-box;
  border-bottom: 1px solid red;
  padding: 0;
  margin: 0;
  position: relative;
}
.li2 {
  border-bottom: 1px solid #fff;
}
.lis {
  display: inline-block;
  box-sizing: border-box;
  width: calc(100% - 17.5px);
  height: 46px;
  box-sizing: border-box;
  padding: 0;
  float: left;
  margin: 0;
  text-align: center;
  border-top: 1px solid red;
  border-left: 1px solid red;
  border-right: 1px solid red;
  vertical-align: middle;
  border-radius: 5px 5px 0 0;
  position: absolute;
  left: 9px;
}
.borders {
  float: right;
  display: inline-block;
  vertical-align: middle;
  border-bottom: 1px solid red;
  box-sizing: border-box;
  border-top: #fff;
  z-index: 99;
  width: 9.5px;
  height: 46px;
  margin-top: 4px;
  /* float: right; */
  border-bottom-left-radius: 5px;
  border-left: 1px solid red;
  position: absolute;
  right: 0px;
}
.borders2 {
  border-bottom: 1px solid red;
  float: left;
  display: inline-block;
  vertical-align: middle;
  border-right: 1px solid red;
  box-sizing: border-box;
  border-top: #fff;
  z-index: 99;
  width: 10px;
  height: 46px;
  margin-top: 4px;
  border-bottom-right-radius: 5px;
  position: absolute;
  left: 0;
}
::-webkit-scrollbar {
  /*隐藏滚轮*/
  display: none;
}

.cont {
  width: 100%;
  padding: 20px;
  line-height: 30px;
}

.video {
  width: 80%;
  height: 500px;
  margin: 10px auto;
  display: block;
}

.content {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  font-size: 14px;
}
</style>
